package com.IR.shop.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProductcommentExample {
	protected int offset;
    protected int limit;
    public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProductcommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPcidIsNull() {
            addCriterion("pcid is null");
            return (Criteria) this;
        }

        public Criteria andPcidIsNotNull() {
            addCriterion("pcid is not null");
            return (Criteria) this;
        }

        public Criteria andPcidEqualTo(Integer value) {
            addCriterion("pcid =", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidNotEqualTo(Integer value) {
            addCriterion("pcid <>", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidGreaterThan(Integer value) {
            addCriterion("pcid >", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pcid >=", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidLessThan(Integer value) {
            addCriterion("pcid <", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidLessThanOrEqualTo(Integer value) {
            addCriterion("pcid <=", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidIn(List<Integer> values) {
            addCriterion("pcid in", values, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidNotIn(List<Integer> values) {
            addCriterion("pcid not in", values, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidBetween(Integer value1, Integer value2) {
            addCriterion("pcid between", value1, value2, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidNotBetween(Integer value1, Integer value2) {
            addCriterion("pcid not between", value1, value2, "pcid");
            return (Criteria) this;
        }

        public Criteria andProidIsNull() {
            addCriterion("proid is null");
            return (Criteria) this;
        }

        public Criteria andProidIsNotNull() {
            addCriterion("proid is not null");
            return (Criteria) this;
        }

        public Criteria andProidEqualTo(Long value) {
            addCriterion("proid =", value, "proid");
            return (Criteria) this;
        }

        public Criteria andProidNotEqualTo(Long value) {
            addCriterion("proid <>", value, "proid");
            return (Criteria) this;
        }

        public Criteria andProidGreaterThan(Long value) {
            addCriterion("proid >", value, "proid");
            return (Criteria) this;
        }

        public Criteria andProidGreaterThanOrEqualTo(Long value) {
            addCriterion("proid >=", value, "proid");
            return (Criteria) this;
        }

        public Criteria andProidLessThan(Long value) {
            addCriterion("proid <", value, "proid");
            return (Criteria) this;
        }

        public Criteria andProidLessThanOrEqualTo(Long value) {
            addCriterion("proid <=", value, "proid");
            return (Criteria) this;
        }

        public Criteria andProidIn(List<Long> values) {
            addCriterion("proid in", values, "proid");
            return (Criteria) this;
        }

        public Criteria andProidNotIn(List<Long> values) {
            addCriterion("proid not in", values, "proid");
            return (Criteria) this;
        }

        public Criteria andProidBetween(Long value1, Long value2) {
            addCriterion("proid between", value1, value2, "proid");
            return (Criteria) this;
        }

        public Criteria andProidNotBetween(Long value1, Long value2) {
            addCriterion("proid not between", value1, value2, "proid");
            return (Criteria) this;
        }

        public Criteria andPccommentIsNull() {
            addCriterion("pccomment is null");
            return (Criteria) this;
        }

        public Criteria andPccommentIsNotNull() {
            addCriterion("pccomment is not null");
            return (Criteria) this;
        }

        public Criteria andPccommentEqualTo(String value) {
            addCriterion("pccomment =", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentNotEqualTo(String value) {
            addCriterion("pccomment <>", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentGreaterThan(String value) {
            addCriterion("pccomment >", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentGreaterThanOrEqualTo(String value) {
            addCriterion("pccomment >=", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentLessThan(String value) {
            addCriterion("pccomment <", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentLessThanOrEqualTo(String value) {
            addCriterion("pccomment <=", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentLike(String value) {
            addCriterion("pccomment like", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentNotLike(String value) {
            addCriterion("pccomment not like", value, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentIn(List<String> values) {
            addCriterion("pccomment in", values, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentNotIn(List<String> values) {
            addCriterion("pccomment not in", values, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentBetween(String value1, String value2) {
            addCriterion("pccomment between", value1, value2, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPccommentNotBetween(String value1, String value2) {
            addCriterion("pccomment not between", value1, value2, "pccomment");
            return (Criteria) this;
        }

        public Criteria andPcdateIsNull() {
            addCriterion("pcdate is null");
            return (Criteria) this;
        }

        public Criteria andPcdateIsNotNull() {
            addCriterion("pcdate is not null");
            return (Criteria) this;
        }

        public Criteria andPcdateEqualTo(Date value) {
            addCriterion("pcdate =", value, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateNotEqualTo(Date value) {
            addCriterion("pcdate <>", value, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateGreaterThan(Date value) {
            addCriterion("pcdate >", value, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateGreaterThanOrEqualTo(Date value) {
            addCriterion("pcdate >=", value, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateLessThan(Date value) {
            addCriterion("pcdate <", value, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateLessThanOrEqualTo(Date value) {
            addCriterion("pcdate <=", value, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateIn(List<Date> values) {
            addCriterion("pcdate in", values, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateNotIn(List<Date> values) {
            addCriterion("pcdate not in", values, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateBetween(Date value1, Date value2) {
            addCriterion("pcdate between", value1, value2, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcdateNotBetween(Date value1, Date value2) {
            addCriterion("pcdate not between", value1, value2, "pcdate");
            return (Criteria) this;
        }

        public Criteria andPcgradeIsNull() {
            addCriterion("pcgrade is null");
            return (Criteria) this;
        }

        public Criteria andPcgradeIsNotNull() {
            addCriterion("pcgrade is not null");
            return (Criteria) this;
        }

        public Criteria andPcgradeEqualTo(Integer value) {
            addCriterion("pcgrade =", value, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeNotEqualTo(Integer value) {
            addCriterion("pcgrade <>", value, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeGreaterThan(Integer value) {
            addCriterion("pcgrade >", value, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pcgrade >=", value, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeLessThan(Integer value) {
            addCriterion("pcgrade <", value, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeLessThanOrEqualTo(Integer value) {
            addCriterion("pcgrade <=", value, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeIn(List<Integer> values) {
            addCriterion("pcgrade in", values, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeNotIn(List<Integer> values) {
            addCriterion("pcgrade not in", values, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeBetween(Integer value1, Integer value2) {
            addCriterion("pcgrade between", value1, value2, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcgradeNotBetween(Integer value1, Integer value2) {
            addCriterion("pcgrade not between", value1, value2, "pcgrade");
            return (Criteria) this;
        }

        public Criteria andPcimgsIsNull() {
            addCriterion("pcimgs is null");
            return (Criteria) this;
        }

        public Criteria andPcimgsIsNotNull() {
            addCriterion("pcimgs is not null");
            return (Criteria) this;
        }

        public Criteria andPcimgsEqualTo(String value) {
            addCriterion("pcimgs =", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsNotEqualTo(String value) {
            addCriterion("pcimgs <>", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsGreaterThan(String value) {
            addCriterion("pcimgs >", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsGreaterThanOrEqualTo(String value) {
            addCriterion("pcimgs >=", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsLessThan(String value) {
            addCriterion("pcimgs <", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsLessThanOrEqualTo(String value) {
            addCriterion("pcimgs <=", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsLike(String value) {
            addCriterion("pcimgs like", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsNotLike(String value) {
            addCriterion("pcimgs not like", value, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsIn(List<String> values) {
            addCriterion("pcimgs in", values, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsNotIn(List<String> values) {
            addCriterion("pcimgs not in", values, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsBetween(String value1, String value2) {
            addCriterion("pcimgs between", value1, value2, "pcimgs");
            return (Criteria) this;
        }

        public Criteria andPcimgsNotBetween(String value1, String value2) {
            addCriterion("pcimgs not between", value1, value2, "pcimgs");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}